type int = number;
//class ChatFraudFilter

    export  class ChatFraudFilter
    {
       

        public static set source(arg1: Array<any>)
        {
            var loc1=null;
            if (arg1 != null) 
            {
                ChatFraudFilter._source = arg1;
                var loc2=0;
                var loc3=ChatFraudFilter._source;
                for(loc1 of loc3) 
                {
                    loc1.rep = new RegExp(loc1.rep, "ig");
                    loc1.point = parseFloat(loc1.point);
                }
            }
            return;
        }

        public static isChatFraud(arg1: string): Boolean
        {
            var loc2=null;
            var loc1=0;
            var loc3=0;
            var loc4=ChatFraudFilter._source;
            for(loc2 of loc4) 
            {
                if (!(arg1.search(loc2.rep) > -1)) 
                {
                    continue;
                }
                loc1 = loc1 + loc2.point;
                if (!(loc1 >= ChatFraudFilter.LIMITVALUE)) 
                {
                    continue;
                }
                return true;
            }
            return false;
        }

        public static hasQQInfo(arg1: string): Boolean
        {
            var loc1=new RegExp("[IO1234567890１２３４５６７８９０①②③④⑤⑥⑦⑧⑨⒈⒉⒊⒋⒌⒍⒎⒏⒐ⅠⅡⅢⅣⅤⅥⅦⅧⅨ㈠㈡㈢㈣㈤㈥㈦㈧㈨⑴⑵⑶⑷⑸⑹⑺⑻⑼零壹贰叁肆伍陆柒捌玖一二三四五六七八九]{7,13}", "img");
            return loc1.test(arg1);
        }

        public static delSpecialSymbols(arg1: string): string
        {
            return arg1.replace(ChatFraudFilter.DelReg, "");
        }

        private static /* const */LIMITVALUE: number=1;

        private static /* var */_source: Array<any>;

        private static /* var */reg: RegExp;

        private static /* var */DelReg: RegExp;

        private static /* var */regIndex: int=0;
    }

            ChatFraudFilter._source = [];
            ChatFraudFilter.reg = new RegExp("[\\s█﹦﹢【】〖〗﹝﹞〔〕﹜﹛﹢＋≒＝（）]", "img");
            ChatFraudFilter.DelReg = new RegExp("[^IOlZz1234567890１２３４５６７８９０①②③④⑤⑥⑦⑧⑨⒈⒉⒊⒋⒌⒍⒎⒏⒐ⅠⅡⅢⅣⅤⅥⅦⅧⅨ㈠㈡㈢㈣㈤㈥㈦㈧㈨⑴⑵⑶⑷⑸⑹⑺⑻⑼零壹贰叁肆伍陆柒捌玖一二三四五六七八九—十万百]", "img");
            ChatFraudFilter.regIndex = 0;
        